home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / Testing & Debugging / Memory Management / Xap Handles dcmd / Xap README < prev    next >
Encoding:
Text File  |  1993-09-17  |  1.1 KB  |  20 lines  |  [TEXT/ttxt]

  1. Xap dcmd README        
  2.  
  3.         The basic idea here is to trash the blocks in the heap as they are disposed, in order 
  4.         to flush out any use of memory that has been disposed.  This thing will patch the
  5.         traps DisposPtr and DisposHandle, and when they are called, it will fill the entire
  6.         block with $50FFC001 as a funky number that may cause bus errors if used in an 
  7.         inappropriate situation.  As it runs, more and more of the memory will be filled
  8.         with these numbers, so it can also find some use of uninitialized variables.
  9.         
  10.         Notably, you can't really run this during boot time, since the system is a little
  11.         to weird, and a number of Inits do things like dispose the block the pc is running
  12.         out of.  With Zap on, the code stream gets filled with illegal instructions, and you
  13.         find out who is being sick.  (Like a lot of these things, it isn't strictly a bug, since it
  14.         won't crash in the normal case, it's just a bad idea.)
  15.  
  16.         The options are: Zap On|Off
  17.             Off by default, naturally, and it doesn't toggle, although perhaps it should, instead
  18.             of requiring a parameter.
  19.         
  20.